package org.example.studentsystem_back.vo.userManageVo.smallVo;

import lombok.Getter;
import lombok.Setter;
import org.example.studentsystem_back.domain.Students;

@Setter
@Getter
public class PageStudentItem extends Students {
    private String name;

    public void setDataByStudent(Students student){
        this.setStudentId(student.getStudentId());
        this.setUserid(student.getUserid());
        this.setClassName(student.getClassName());
        this.setMajor(student.getMajor());
        this.setDepartment(student.getDepartment());
        this.setPhone(student.getPhone());
        this.setHukou(student.getHukou());
        this.setAddress(student.getAddress());
        this.setType(student.getType());
        this.setEducation(student.getEducation());
        this.setBirthdate(student.getBirthdate());
        this.setPoliticalStatus(student.getPoliticalStatus());
        this.setNationality(student.getNationality());
        this.setEmail(student.getEmail());
        this.setIdCard(student.getIdCard());
    }
}
